<?php
$this->breadcrumbs=array(
	'Alumnos'=>array('index'),
	'Matricular',
);


?>
<div class="form">



<?php
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'matricular-form',
	'enableClientValidation'=>true,
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('enctype'=>'multipart/form-data'),
));

echo $form->errorSummary(array($familiar,$model,$user));


$this->widget('zii.widgets.jui.CJuiTabs', array(
    'tabs'=>array(
        'Datos del alumno'=>$this->renderPartial('_form', array('model'=>$model,
							'user'=>$user,'form'=>$form),true),
        'Datos del Padre'=>$this->renderPartial('datosdelpadre', array('familiar'=>$familiar,'form'=>$form,'buscarFamiliar'=>$buscarFamiliar),true),
        'Datos de la Madre'=>$this->renderPartial('datosdelamadre', array('familiar'=>$familiar,'form'=>$form,'buscarFamiliar'=>$buscarFamiliar),true),
        'Datos apoderado suplente'=>$this->renderPartial('datosdelsuplente', array('familiar'=>$familiar,'form'=>$form,'buscarFamiliar'=>$buscarFamiliar),true),
),
    'options'=>array(
        'collapsible'=>true,

),
    'htmlOptions'=>array(
        'style'=>'width:800px;'
),
));
echo '<div class="row buttons">';
echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Guardar');
echo '</div>';
?>
</div>

<?php $this->endWidget(); ?>